<?php
namespace Seller\Model;
use Think\Model\ViewModel;

class OrderViewModel extends ViewModel
{
    public $viewFields = array(

        'agent' => array(
            'agent_id','agent_name',
            '_type' => 'LEFT'
        ),
        'order' => array(
            'uid','time','price','id',
            '_as' => 'my_order',
            '_on' => 'my_order.uid = agent.agent_id' ,
            '_type' => 'LEFT'
        ),

    );
}
